home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Apps / HighScoreServer / ServerMain.m < prev   
Text File  |  1995-06-12  |  440b  |  18 lines

  1. // ServerMain is a basic server program which handles the high scores.
  2. // It sets up a port and then waits for clients.
  3.  
  4. #import <remote/NXConnection.h>
  5. #import <gamekit/gamekit.h>
  6.  
  7. int main()
  8. {
  9.     id distributor = [[HighScoreDistributor alloc] init];
  10.     id connection = [NXConnection registerRoot:distributor
  11.             withName:"DAYHighScoreServer"];
  12. #ifdef LOGGING_ENABLED
  13.     [HighScoreServer turnLoggingOn:YES];
  14. #endif
  15.     [connection run];
  16.     exit(0);
  17. }
  18.